package com.qlzb.taskmanagement.persistentData.entity;



import com.qlzb.taskmanagement.vo.quartzVo.OperationColumnId;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 运维系统的分度路计量设备
 */
@Entity(name = "oil_operation_meterage")
public class OperationMeterage extends BaseEntity {
    //设备名称
    @OperationColumnId(name ="设备名称")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '设备名称'")
    String name;
    //设备运维ID
    @OperationColumnId(name ="设备运维ID")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '设备运维ID'")
    String operationId;
    //监控运营商
    @OperationColumnId(name ="监控运营商")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '监控运营商'")
    String shareOper;
    //所属省
    @OperationColumnId(name ="所属省")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '所属省'")
    String provice;
    //所属市
    @OperationColumnId(name ="所属市")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '所属市'")
    String cityName;
    //所属区县
    @OperationColumnId(name ="所属区县")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '所属区县'")
    String areaName;
    //站址名称
    @OperationColumnId(name ="所属站址")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '所属站址'")
    String stationName;
    //站址名称
    @OperationColumnId(name ="站址运维ID")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '站址运维ID'")
    String stationOperationId;
    //站址编码
    String stationCode;
    //所属机房
    @OperationColumnId(name ="所属机房")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '所属机房'")
    String factory;
    //代维公司
    @OperationColumnId(name ="代维公司")
    @Column(columnDefinition = "varchar(64) DEFAULT NULL Comment '代维公司'")
    String dwcompany;

    public String getStationOperationId() {
        return stationOperationId;
    }

    public void setStationOperationId(String stationOperationId) {
        this.stationOperationId = stationOperationId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    public String getShareOper() {
        return shareOper;
    }

    public void setShareOper(String shareOper) {
        this.shareOper = shareOper;
    }

    public String getProvice() {
        return provice;
    }

    public void setProvice(String provice) {
        this.provice = provice;
    }

    public String getCityName() {
        if(cityName==null){
            return null;
        }
        return cityName.replace("分公司", "");
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory;
    }

    public String getDwcompany() {
        return dwcompany;
    }

    public void setDwcompany(String dwcompany) {
        this.dwcompany = dwcompany;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }
}
